<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

<form action="teacher_add" method="post" enctype="multipart/form-data">
    @csrf
         <input type="hidden" name="id" value="{{$xx?$xx->id:0}}">
   姓名：<input type="text" name="name" value="{{$xx?$xx->name:''}}">
   年龄：<input type="text" name="age" value="{{$xx?$xx->age:''}}">

    <select name="unwan" id="">
    @foreach($deg as $i)
            <option value="{{$i->id}}">{{$i->unwan}} </option>
     @endforeach
    </select>

    <select name="pan" id="">
        @foreach($sub as $e)
            <option value="{{$e->id}}">{{$e->pan}} </option>
        @endforeach
    </select>


   头像：<input type="file" name="pic" >
    <input type="submit">

</form>
</body>
</html>
